package com.ahs.algorithm;

import org.junit.jupiter.api.Test;

import java.text.MessageFormat;
import java.util.Arrays;

/**
 * @author riven zhang
 * @since 2021/9/1 18:45
 */
public class FeibioNumber {

    private void numGen(int n) {
        int[] nums = new int[n];
        nums[0] = nums[1] = 1;
        for (int i = 2; i < nums.length; i++) {
            nums[i] = nums[i - 1] + nums[i - 2];
        }

        System.out.println(Arrays.toString(nums));
    }

    @Test
    void test() {
        String s = MessageFormat.format("Hello:{0}", "Andy", "Bob");
        System.out.println("s = " + s);
    }
}
